//
//
//
//
//
//
//
//
import abstractButton from '../internal/abstractButton'
export default{
props: {
icon: {
type: String
},
index: {
type: Number
},
isCircle: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
isActive: {
type: Boolean,
default: false
},
identifier: {
type: String
}
},
data () {
return {
}
},
methods: {
handleHover (event) {
this.$emit('hover', event)
},
handleHoverExit (event) {
this.$emit('hoverExit', event)
},
handleClick () {
if (this.index) {
this.$emit('click', this.index)
} else {
this.$emit('click', this.identifier)
}
}
},
components: {
'abstract-button': abstractButton
}
}
|